WOLF core
WOLF: A Modular Estimation Framework for Robotics
XXXXXXXXXXXXXXXXXXXXXXXXvoid(0)" frameborder="0" name="MSearchResults" id="MSearchResults">
capture_pose.h
Go to the documentation of this file.
1// WOLF - Copyright (C) 2020-2026
2// Institut de Robòtica i Informàtica Industrial, CSIC-UPC.
3// Authors: Joan Solà Ortega (jsola@iri.upc.edu) and
4// Joan Vallvé Navarro (jvallve@iri.upc.edu)
5// All rights reserved.
6//
7// This file is part of WOLF: http://www.iri.upc.edu/wolf
8// WOLF is free software: you can redistribute it and/or modify
9// it under the terms of the GNU General Public License version 3
10// as published by the Free Software Foundation.
11//
12// This program is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15// GNU General Public License for more details.
16//
17// You should have received a copy of the GNU General Public License
18// along with this program. If not, see <http://www.gnu.org/licenses/>.
19#pragma once
20
21// Wolf includes
26
27// std includes
28//
29
30namespace wolf
31{
33
34// class CapturePose
36{
37 protected:
38 Eigen::VectorXd data_;
39 Eigen::MatrixXd data_covariance_;
40
41 public:
42 CapturePose(const TimeStamp& _ts,
43 SensorBasePtr _sensor_ptr,
44 const Eigen::VectorXd& _data,
45 const Eigen::MatrixXd& _data_covariance);
46
47 ~CapturePose() override;
48
49 virtual void emplaceFeatureAndFactor(const ProcessorBasePtr& _processor = nullptr,
50 bool _apply_loss_function = false);
51 Eigen::VectorXd getData() const
52 {
53 return data_;
54 }
55 Eigen::MatrixXd getDataCovariance() const
56 {
57 return data_covariance_;
58 }
59 void setData(const Eigen::VectorXd& _data);
60 void setDataCovariance(const Eigen::MatrixXd& _data_covariance);
61};
62
63} // namespace wolf
Definition: capture_base.h:39
Definition: capture_pose.h:36
Eigen::VectorXd data_
Raw data.
Definition: capture_pose.h:38
virtual void emplaceFeatureAndFactor(const ProcessorBasePtr &_processor=nullptr, bool _apply_loss_function=false)
Definition: capture_pose.cpp:54
Eigen::VectorXd getData() const
Definition: capture_pose.h:51
void setDataCovariance(const Eigen::MatrixXd &_data_covariance)
Definition: capture_pose.cpp:46
CapturePose(const TimeStamp &_ts, SensorBasePtr _sensor_ptr, const Eigen::VectorXd &_data, const Eigen::MatrixXd &_data_covariance)
Definition: capture_pose.cpp:23
Eigen::MatrixXd getDataCovariance() const
Definition: capture_pose.h:55
Eigen::MatrixXd data_covariance_
Noise of the capture.
Definition: capture_pose.h:39
~CapturePose() override
Definition: capture_pose.cpp:34
void setData(const Eigen::VectorXd &_data)
Definition: capture_pose.cpp:39
TimeStamp implements basic functionalities for time stamps.
Definition: time_stamp.h:39
Definition: capture_base.h:23
WOLF_PTR_TYPEDEFS(CaptureLandmarksExternal)